Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add orchard::bundle::BatchValidator #338

Merged
merged 3 commits into from
Jun 23, 2022
Merged

Add orchard::bundle::BatchValidator #338

merged 3 commits into from
Jun 23, 2022

Conversation

str4d
Copy link
Contributor

@str4d str4d commented Jun 21, 2022

No description provided.

@str4d str4d changed the title Batch validation Add orchard::bundle::BatchValidator Jun 21, 2022
@codecov-commenter
Copy link

codecov-commenter commented Jun 21, 2022

Codecov Report

Merging #338 (4bed672) into main (b448f3f) will decrease coverage by 0.72%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main     #338      +/-   ##
==========================================
- Coverage   89.72%   88.99%   -0.73%     
==========================================
  Files          36       37       +1     
  Lines        3823     3854      +31     
==========================================
  Hits         3430     3430              
- Misses        393      424      +31     
Impacted Files Coverage Δ
src/bundle.rs 41.72% <ø> (ø)
src/bundle/batch.rs 0.00% <0.00%> (ø)
src/circuit.rs 88.66% <0.00%> (-1.20%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b448f3f...4bed672. Read the comment docs.

@str4d str4d force-pushed the batch-validation branch from 97827a0 to 941a8cb Compare June 23, 2022 17:18
@str4d str4d force-pushed the halo2_proofs-0.2.0 branch 2 times, most recently from 619e1f3 to be69324 Compare June 23, 2022 19:25
Base automatically changed from halo2_proofs-0.2.0 to main June 23, 2022 19:44
str4d added 2 commits June 23, 2022 19:45
Adapted from the `BatchValidator` in `zcashd`, that only handles
RedPallas signatures.
@str4d str4d force-pushed the batch-validation branch from 941a8cb to 81626b3 Compare June 23, 2022 19:46
@str4d str4d marked this pull request as ready for review June 23, 2022 19:46
Copy link
Contributor

@daira daira left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK with suggested comment improvement.

Copy link
Contributor

@therealyingtong therealyingtong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Co-authored-by: Daira Hopwood <daira@jacaranda.org>
@str4d str4d merged commit 6c05327 into main Jun 23, 2022
@str4d str4d deleted the batch-validation branch June 23, 2022 22:10
@@ -69,6 +69,8 @@ impl BatchValidator {
pub fn validate<R: RngCore + CryptoRng>(self, vk: &VerifyingKey, rng: R) -> bool {
if self.signatures.is_empty() {
// An empty batch is always valid, but is not free to run; skip it.
// Note that a transaction has at least a binding signature, so if
// there are no signatures, there are also no proofs.
Copy link
Contributor

@daira daira Jun 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess this should have more precisely said "A transaction has at least an Orchard binding signature if it has any Orchard components, so if there are no Orchard signatures, there are also no Orchard proofs."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants